package com.athui.enums;

/**
 * @description: TODO
 * @autor: zhangzhonghui
 * @create: 2024-08-02 13:44
 * @Version: 1.0
 */
public enum JdbcTemplateEnums {
    MYSQL("jdbc:mysql://%s:%d/%s?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false"),
    ORACLE("jdbc:oracle:thin:@%s:%d:%s"),
    SQLSERVER("jdbc:sqlserver://%s:%d;databaseName=%s;encrypt=true;trustServerCertificate=true"),
    HIVE("jdbc:hive2://%s:%d/%s");

    private String template;

    JdbcTemplateEnums(String template) {
        this.template = template;
    }

    @Override
    public String toString() {
        return template;
    }

}
